package cn.bonoon.kernel.menus;

/**
 * 这个类可以决定如何生成导航栏
 * @author jackson
 *
 */
public class MenuNavigationImpl implements MenuNavigation {
	
	private final MenuNavigation parent;
	private final ItemableDefinition item;
	
	public MenuNavigationImpl(MenuNavigation parent, ItemableDefinition item){
		this.parent = parent;
		this.item = item;
	}

	@Override
	public String navigation() {
		return parent.navigation() + ">>" + item.getName();
	}
}
